//定义抽象类
public abstract class Disciplines {
    private DisciplinesTypeEnum type;
    private String details;
    private double fees;

    public Disciplines(DisciplinesTypeEnum type,String details,double fees){
        this.type=type;
        this.details=details;
        this.fees=fees;
    }

    public DisciplinesTypeEnum getType() {
        return type;
    }

    public void setType(DisciplinesTypeEnum type) {
        this.type = type;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public double getFees() {
        return fees;
    }

    public void setFees(double fees) {
        this.fees = fees;
    }
//定义抽象方法
    public abstract void study();


    @Override
    public String toString() {
        return "Disciplines{" +
                "type=" + type +
                ", details='" + details + '\'' +
                ", fees=" + fees +
                '}';
    }
}
